<!DOCTYPE html>
<html lang="zh-CN">
<#include "../common/header.ftl"/>
<section id="geyan">
    <div class="container">
        <div class="row">
            <div class="col-md-12">
                <h1>${(post.title)!"天地不仁，以万物为刍狗。"}</h1>
                <div class="blog_header">
                    <span class="blog_date value"> 时间</span>${post.dates?datetime }
                    <span class="blog_browses value"> 浏览</span><span class="badge">${post.browses }</span>
                    <span class="value"> 标签</span>
                <#list post.tags as tag>
                    <span class="blog_tags">${tag }</span>
                </#list>
                </div>
            </div>
        </div>
    </div>
</section>

<section id="main">
    <div class="container">
        <div class="col-md-12 row content" id="blogContents">
            <div class="blog_post">

                <div id="test-editormd-view">
                    <textarea id="append-test" style="display:none;">${post.content!""}</textarea>
                </div>

                <div>
                <#if prePost??>
                    <a href='<@sp.url "/blog/title/${prePost.title}" />'
                       class="blog_title pull-left col-md-6">${prePost.title}</a>
                </#if>
                <#if nextPost??>
                    <a href='<@sp.url "/blog/title/${nextPost.title}" />'
                       class="blog_title pull-right col-md-6">${nextPost.title}</a>
                </#if>
                </div>
                <div>
                    <ul>
                    <#list tagPost as post>
                        <li><a href='<@sp.url "/blog/title/${prePost.title}" />'>${post.title}</a></li>
                    </#list>
                    </ul>
                </div>
            <@bingo.duoshuo bool=post.cStatus=='OPEN' id="${post.id}" title="${post.title}" url="http://kaibb.com/blog/${post.id}"/>
            </div>
        </div>
    </div>
</section>

<#include "../common/footer.ftl" />